#!/bin/bash
rm cache.c
cat cache.template.part1 >> cache.c
echo "#define NO_SEQ_BLK ${1} " >> cache.c
echo "#define DIFF_SIZE ${2} " >> cache.c
echo "#define NO_PCDC_BLK ${3} " >> cache.c
echo "#define NO_RPT_BLK ${4} " >> cache.c
cat cache.template.part2 >> cache.c
make sim-outorder
./sim-outorder -redir:sim OUT ../benchmarks/compress95.alpha < ../benchmarks/compress95.in > ../benchmarks/compress95.out
echo Parameters ${1} ${2} ${3} ${4} >> GAresults.out
grep sim_cycle OUT >> GAresults.out
